package com.gitee.minimalismstyle.fresh.simple.dao

import com.gitee.minimalismstyle.fresh.simple.api.model.TableColumnSchema
import com.gitee.minimalismstyle.fresh.simple.api.model.TableSchema
import org.beetl.sql.mapper.annotation.SqlResource

@SqlResource("database")
interface DatabaseDao {

    fun findAllTable(database: String): List<TableSchema>

    fun findTableByName(database: String, name: String): TableSchema

    fun findColumnsByName(database: String, name: String): List<TableColumnSchema>
}